package cn.senjoeson.triper.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by senjoeson on 2018/1/1.
 */
@Entity
public class Plan {
    @Id(autoincrement = true)
    private Long planId;
    @Property(nameInDb = "startDate")
    @NotNull
    private String startDate;
    @Property(nameInDb = "endDate")
    @NotNull
    private String endDate;
    @Property(nameInDb = "days")
    private int days;
    @Property(nameInDb = "tripName")
    private String tripName;
    @Generated(hash = 1656680231)
    public Plan(Long planId, @NotNull String startDate, @NotNull String endDate,
            int days, String tripName) {
        this.planId = planId;
        this.startDate = startDate;
        this.endDate = endDate;
        this.days = days;
        this.tripName = tripName;
    }
    @Generated(hash = 592612124)
    public Plan() {
    }
    public Long getPlanId() {
        return this.planId;
    }
    public void setPlanId(Long planId) {
        this.planId = planId;
    }
    public String getStartDate() {
        return this.startDate;
    }
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }
    public String getEndDate() {
        return this.endDate;
    }
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
    public int getDays() {
        return this.days;
    }
    public void setDays(int days) {
        this.days = days;
    }
    public String getTripName() {
        return this.tripName;
    }
    public void setTripName(String tripName) {
        this.tripName = tripName;
    }
   
}
